#ifndef _IS_WINDOWS__
#ifndef Unix_sync_h
#define Unix_sync_h 1

#include <ctime>
#include <cstdio>
#include <cstdlib>
#include <gtk-2.0/gtk/gtk.h>
#include <gtk-2.0/gdk/gdk.h>
 
#include <gtk-2.0/gtk/gtkdialog.h>
#include <gtk-2.0/gtk/gtktypeutils.h>
#include <gtk-2.0/gtk/gtkmain.h>
#include <gtk-2.0/gtk/gtkstyle.h>
#include <gtk-2.0/gtk/gtkmessagedialog.h>
#include <iostream>
#include <gtk-2.0/gtk/gtkwindow.h>
#ifdef hhf
#undef hhf
#endif
#define hhf '\n'
class MB_class{
	private:
		void close(){
			gtk_main_quit();
		}
	public:
		enum type{
			MB_OK,MB_
		};
		void MessageBox(int* null,string title,string body,type mb_type){}
}MB;
#define MessageBox MB.MessageBox
#define MB_OK MB.MB_OK
void Sleep(int time){
    int old_time=clock();
    while((clock()-old_time)<time);
}
void use_getch(){
	system("stty -echo");
}
void unuse_getch(){
	system("stty echo");
}
void print(string a,int speed=100){
	for(int i=0;i<a.length();i++){
		printf("%c",a[i]);
		Sleep(speed);
	}
}
int getint(int *index=NULL){
	char c;
	int a;
	while((c=getchar())!=hhf){
		cout << c-'0';
		a*=10;
		a+=c-'0';
	}
	cout << "\n";
	return a;
}
string getint2(){
	char c;
	string a;
	while((c=getchar())!=enter){
		cout << "*";
		a.push_back(c);
	}
	return a;
}

#endif
#endif